package com.example.adtest;

import android.app.Application;
import android.os.Build;
import android.webkit.WebView;

import com.anythink.core.api.ATSDK;

public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            String processName = getProcessName();
            if (!getPackageName().equals(processName)) {
                WebView.setDataDirectorySuffix(processName);
            }
        }

        ATSDK.init(this,"a68abd9bdeeb91","a0062de6c124fa8b8ad800fee90904285");
        ATSDK.start();
    }
}
